import request from '@/utils/request'

// 查询商品列表
export function listGoods(query) {
  return request({
    url: '/basic/data/goods/list',
    method: 'get',
    params: query
  })
}

// 修改商品
export function updateGoods(data) {
    return request({
      url: '/basic/data/goods/update',
      method: 'post',
      data: data
    })
}

// 查询客商品详细
export function getGoods(query) {
    return request({
        url: '/basic/data/goods/detail',
        method: 'get',
        params: query
    })
}

// 商品分类下拉
export function listGoodsClassSelect(query) {
    return request({
      url: '/basic/data/goods/class/goodsClassSelect',
      method: 'get',
      params: query
    })
  }

  // 订货分类下拉
export function listOrderClassSelect() {
    return request({
      url: '/basic/data/orderClass/orderClassSelect',
      method: 'get',
    })
}



// 商品禁用状态校验
export function checkGoodsStatus(data) {
  return request({
    url: '/basic/data/tenant/goods/checkGoodsStatus',
    method: 'post',
    data: data
  })
}